package mygang.service;

import mygang.model.BaseModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *
 * @author Volodymyr Lavrynovych <volodya.lavrynovych@gmail.com>
 * date: 05/09/2012
 */
@Component
public abstract class AbstractService<D> extends BaseModel {
    
    private D dao;
    
    @Autowired
    public void setDao(D dao) {
        this.dao = dao;
    }
    
    protected D getDao(){
        return dao;
    }
}